﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IPlugin;

namespace division
{
    public class Division : Plugin
    {
        public float operacion(float a, float b) 
        {
            try
            {
                if (b == 0) throw new InvalidOperationException();
            }
            catch (InvalidOperationException e) { return float.NaN; };
            return a / b;
        }

        public string nombre {
            get {
                return "division"; 
            } 
        }
    }
}
